package com.lxt.blog.pojo;

/*
 *用户类
 * id 唯一ID（不可设置）
 * userid 个人账号
 * password 个人密码
 * sex 个人性别
 * hobby 个人爱好
 * introduce 个人介绍
 */
public class User {
    private int id;
    private String userId;
    private String password;
    private String sex;
    private String hobby;
    private String introduce;

    public User(){}

    public User(int id, String userId, String password, String sex, String hobby, String introduce) {
        this.id = id;
        this.userId = userId;
        this.password = password;
        this.sex = sex;
        this.hobby = hobby;
        this.introduce = introduce;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userId=" + userId +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", hobby='" + hobby + '\'' +
                ", introduce='" + introduce + '\'' +
                '}';
    }
}
